<template>
  <div class="bound">
    <!-- 绑定失败 -->
    <dl class="telsimg">
      <dt>
        <img src="../assets/bindF.png" alt />
      </dt>
      <dd>手机号绑定失败！</dd>
    </dl>
    <div class="btnchoice">
      <button class="cancel" @click="goback">取消</button>
      <a href="javascript:void(0);" @click="prev" class="retry">重试</a>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    goback() {
      setTimeout(() => {
        document.addEventListener(
          "WeixinJSBridgeReady",
          function() {
            WeixinJSBridge.call("closeWindow");
          },
          false
        );
        WeixinJSBridge.call("closeWindow");
      }, 500);
    },
    prev(){
      this.$router.go(-1);
    }
  }
};
</script>
<style scoped>
.bound {
  text-align: center;
}
.telsimg {
  margin: 263px 0 60px;
  font-size: 36px;
}
.telsimg img {
  margin-bottom: 20px;
  width: 298px;
}
.btnchoice > a,
.btnchoice > button {
  display: inline-block;
  width: 259px;
  height: 102px;
  line-height: 100px;
  border-radius: 60px;
  font-size: 38px;
  letter-spacing: 10px;
  margin: 0 20px;
}
.cancel {
  border: 2px solid #007cff;
  color: #007cff;
  outline: none;
  background: transparent;
}
.retry {
  color: #ffffff;
  font-weight: 500;
  background: linear-gradient(135deg, #31c1ff, #007cff);
  box-shadow: 0px 10px 20px 0px rgba(0, 124, 255, 0.5);
}
</style>